package com.alex.service.ipml;

import com.alex.entity.Alexhqline;
import com.alex.mapper.NoticeMapper;
import com.alex.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("noticeService")
public class NoticeServiceImp implements NoticeService {

    @Autowired
    private NoticeMapper noticeMapper;


    @Override
    public Map<String, Object> getmapq(Double z) {
        Alexhqline upq = noticeMapper.getupq(z);
        Alexhqline downq = noticeMapper.getdownq(z);
        Map<String, Object> res = new HashMap<>();
        res.put("up",upq);
        res.put("down",downq);
        return res;
    }
}
